package com.sport.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sport.mapper.UserMapper;
import com.sport.po.User;

@Service
public class UserService {
	@Autowired
	private UserMapper userMapper;
	
	
	
	public int delete(int id){
		return userMapper.delete(id);
	}
	public void  update(User user){
		 userMapper.update(user);
	}
	public User selectById(int id){
		return userMapper.selectById(id);
	}
	
}
